home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13799 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  970 b 

  1. Path: news.lpr.carel.fi!usenet
  2. From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: best way to make a program pause for a while
  5. Date: Wed, 10 Apr 1996 14:52:38 +0300
  6. Organization: Carelcomp Products
  7. Message-ID: <316BA106.5748@cmt.lpr.mail.carel.fi>
  8. References: <4kevtq$knj@pirates.cs.swt.edu>
  9. NNTP-Posting-Host: renoir.cclahti.carel.fi
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. Mohammed Hasan wrote:
  16. > i need to make my simple c program(to run in unix env)
  17. > wait for a while before it terminates.
  18. > what would be the best way to accomplish this?
  19. > right now, i am using the pause() function, but that is
  20. > not very efficient as i need to send a signal to it to
  21. > resume the execution(and eventually terminate).
  22. > any help/idea on this would be highly appreciated.
  23. > thanks.
  24.  
  25. Use sleep.
  26.  
  27. Later,
  28.  AriL
  29. -- 
  30. All my opinions are mine and mine alone.
  31.